package com.xujianlun.cpms.service.impl;

import com.xujianlun.cpms.entity.TAccess;
import com.xujianlun.cpms.mapper.TAccessMapper;
import com.xujianlun.cpms.service.ITAccessService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.sql.ResultSet;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xujianlun
 * @since 2022-12-21
 */
@Service
public class TAccessServiceImpl extends ServiceImpl<TAccessMapper, TAccess> implements ITAccessService {

    @Resource
    private TAccessMapper accessMapper;
    @Override
    public Boolean check(Integer userId) {
        Integer check = accessMapper.check(userId);
        if (check==null){
            return false;
        }
        return true;
    }
}
